package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.model.entity.pure.PureProduct;
import com.atmilan.quartz.mapper.PureProductMapper;
import com.atmilan.quartz.service.IPureProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuzp
 * @since 2021-12-07
 */
@Service
public class PureProductServiceImpl extends ServiceImpl<PureProductMapper, PureProduct> implements IPureProductService {

    @Autowired
    PureProductMapper pureProductMapper;

    @Override
    public void deleteAll() {
        pureProductMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        pureProductMapper.deleteProductBack();
        pureProductMapper.copyProductBack();
    }

}
